package cn.iocoder.yudao.module.resource.dal.dataobject.collect;

import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * 用户收藏 DO
 *
 * @author 芋道源码
 */
@TableName(value = "resource_collect", autoResultMap = true)
@KeySequence("resource_collect_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ResourceCollectDO extends TenantBaseDO {

    /**
     * 收藏ID
     */
    @TableId
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 资源ID
     */
    private Long materialId;

}
